```vue
<script setup>
import { ref, watch } from 'vue';
import { ElMessage } from 'element-plus';

console.log('AddInfoDialog.vue loaded with submit event, timestamp:', Date.now()); // 调试

const props = defineProps({
  visible: Boolean,
});

// 声明 submit 事件
const emit = defineEmits(['update:visible', 'submit']);

const localVisible = ref(props.visible);

watch(() => props.visible, (val) => {
  console.log('Parent visible changed:', val);
  localVisible.value = val;
});
watch(localVisible, (val) => {
  console.log('Local visible changed:', val);
  emit('update:visible', val);
});

const close = () => {
  console.log('Close triggered');
  localVisible.value = false;
};
</script>

<template>
  <transition name="ios-zoom">
    <div
        v-if="localVisible"
        class="dialog-wrapper"
        @click.self="close"
        role="dialog"
        aria-modal="true"
    >
      <div class="dialog-box">
        <h2><slot name="title">Add Information</slot></h2>
        <div class="dialog-body">
          <slot name="content"></slot>
        </div>
        <div class="footer">
          <slot name="footer">
            <button type="button" @click="close">Cancel</button>
            <button type="submit" @click="$emit('submit')">Confirm</button>
          </slot>
        </div>
      </div>
    </div>
  </transition>
</template>

<style scoped>
.dialog-wrapper {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  overflow-y: auto;
}

.dialog-box {
  background: #fff;
  border-radius: 20px;
  width: 600px;
  max-width: 90vw;
  max-height: 80vh;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transform-origin: center center;
  display: flex;
  flex-direction: column;
}

h2 {
  margin: 24px 24px 0;
  text-align: center;
  font-weight: 700;
  font-size: 24px;
}

.dialog-body {
  overflow-y: auto;
  padding: 24px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group h3 {
  font-size: 18px;
  margin-bottom: 12px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 4px;
  font-weight: 600;
}

.row {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

label {
  flex: 1;
  font-weight: 500;
  font-size: 14px;
  display: flex;
  flex-direction: column;
}

input[type="text"],
input[type="number"],
input[type="datetime-local"],
select {
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  box-sizing: border-box;
}

.checkbox-label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-weight: 500;
  user-select: none;
}

.footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #eee;
  margin-top: auto;
}

button {
  background-color: #409eff;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #66b1ff;
}

button[type='button'] {
  background-color: #999;
}

button[type='button']:hover {
  background-color: #bbb;
}

.ios-zoom-enter-active,
.ios-zoom-leave-active {
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1.2, 0.36, 1.2);
}

.ios-zoom-enter-from,
.ios-zoom-leave-to {
  opacity: 0;
  transform: scale(0.8);
}

.ios-zoom-enter-to,
.ios-zoom-leave-from {
  opacity: 1;
  transform: scale(1);
}
</style>
```